package switchviz.gui.component;
import javax.swing.tree.DefaultMutableTreeNode;
import org.jdom.Element;

public class XMLTreeNode extends DefaultMutableTreeNode
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3521979155744048864L;
	private Element _element;
	private String _label;
	
	public void setLabel(String label)
	{
		_label = label;
	}
	
	public Element getElement()
	{
		return _element;
	}
	
	public XMLTreeNode(String label, Element element)
	{
		super(label);
		_label = label; 
		_element = element;
	}
	
	public String toString()
	{
		return _label;
	}
}
